.class final Lcom/baidu/a;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcom/baidu/Ad;


# direct methods
.method constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/baidu/Ad;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/baidu/a;->b:Ljava/lang/String;

    iput-object p3, p0, Lcom/baidu/a;->c:Lcom/baidu/Ad;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v4, 0x1

    const/4 v0, 0x0

    :try_start_0
    iget-object v1, p0, Lcom/baidu/a;->a:Landroid/content/Context;

    new-instance v2, Ljava/net/URL;

    iget-object v3, p0, Lcom/baidu/a;->b:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/baidu/a;->c:Lcom/baidu/Ad;

    invoke-static {v3}, Lcom/baidu/Ad;->a(Lcom/baidu/Ad;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v1, v2, v3}, Lcom/baidu/w;->b(ZLandroid/content/Context;Ljava/net/URL;Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    const-string v1, "createAd"

    invoke-static {v1, v0}, Lcom/baidu/bk;->a(Ljava/lang/String;Ljava/lang/Throwable;)I

    iget-object v0, p0, Lcom/baidu/a;->c:Lcom/baidu/Ad;

    sget-object v1, Landroid/graphics/Bitmap$Config;->ALPHA_8:Landroid/graphics/Bitmap$Config;

    invoke-static {v4, v4, v1}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/Ad;->a(Lcom/baidu/Ad;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    goto :goto_0
.end method
